package springboot_insert.serviceimpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import springboot_insert.entity.InsertInfo;
import springboot_insert.dao.InsertDao;
import springboot_insert.service.InsertService;

@Service
public class InsertServiceImpl implements InsertService{
	@Autowired
	private InsertDao insertDao;
	@Override
	public boolean insertInfo(InsertInfo in) {
		boolean flag=false;
		try {
			insertDao.insert(in);
			flag=true;
		} catch (Exception e) {
			e.printStackTrace();
		}
		return flag;
	}
}
